package com.lesson9.decorator;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/31 9:03
 */
public abstract class Drink
{
    public String desc;
    private float price = 0.0f;

    public String getDesc()
    {
        return desc;
    }

    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public float getPrice()
    {
        return price;
    }

    public void setPrice(float price)
    {
        this.price = price;
    }

    //计算费用的抽象方法
    public abstract float cost();
}
